package com.gitee.hongruisun.promotion;

/**
 * 策略模式测试类
 */
public class StategyTest {
    public static void main(String[] args) {
        String promotionKey ="COUP";
        PromotionActivity promotionActivity =
                new PromotionActivity(PromotionStrategyFactory.getPromotionStrategy(promotionKey));
        promotionActivity.execute();
    }
}
